package com.markus.basic.设计模式.工厂模式;

/**
 * Author:markusZhang
 * Date:Create in 2020/8/30 10:11
 * todo:
 */
public class Client {
    public static void main(String[] args) {
        Factory factory = new ConcreteFactory();
        PhoneProduct huawei = factory.concreteFactory("huawei");
        huawei.phone();
        PhoneProduct xiaomi = factory.concreteFactory("xiaomi");
        xiaomi.phone();
    }
}
